<?php

namespace App\Http\Controllers\admin;

use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\DB;
use Illuminate\Http\Request;
use app\UserModel;


class AdminController extends Controller
{
    /**
     * 会员首页
     *
     */
    public function index()
    {   

        return view('admin/admin');
    }

    public function getData(Request $request){
        $model = new \app\UserModel();
        var_dump($model);exit;
    	$data = $request->input();

        //var_dump($data);exit;

    	if(isset($data['init'])){

    		$data = Db::table('auth_group_access')->get();

            //var_dump($data);exit;  	
        }

    	return $data;
    }
}